package com.chang.bootplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.chang.bootplus.base.database.EntityBase;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chang
 * @since 2022-01-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("product_cates")
@ApiModel(value = "ProductCates对象", description = "")
public class ProductCates extends EntityBase {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分类等级id 0为最高分类 1 为二级分类 ")
    private Long pid;

    @ApiModelProperty("分类名称")
    private String title;

    @ApiModelProperty("存储属哪一级，如果是一级分类则为0")
    private Long parentId;


}
